﻿using System;
using log4net;

namespace Common
{
    public class Config
    {
        private static readonly ILog Log = LogManager.GetLogger(typeof(Config));

        static Config()
        {
//            #if DEBUG
//                        HotTopicReidis = "172.19.62.234:6379,password=gs_rdpasswd";
//                        HotTopicConnectionString = "server=172.19.62.234;user=root;database=hot_topic;port=3306;password=fs95536!;Connection Timeout=1200";
//                        TdxPath = @"D:\new_tdx";
//                        ThsPath = @"D:\同花顺软件\同花顺";
//                        DzhPath = @"C:\dzh365";
//                        Log.Info("开发环境");
//            #else
                        HotTopicConnectionString = "server=127.0.0.1;user=hot_topic;database=hot_topic;port=3306;password=hot_topic_password;Connection Timeout=1200";
                        HotTopicReidis = "127.0.0.1:6379,password=gs_redis_password";
                        TdxPath = @"C:\new_tdx";
                        ThsPath = @"C:\同花顺软件\同花顺";
                        DzhPath = @"C:\dzh365";
                        Log.Info("生产环境");
//            #endif
        }

        //redis配置
        public static readonly string HotTopicReidis;

        //mysql配置
        public static readonly string HotTopicConnectionString;
        //
        public static readonly string HotTopicConnectionString2= "server=39.108.75.100;user=wzh;database=pool;port=3306;password=fs95536!;Connection Timeout=1200";

        //通达信安装目录
        public static readonly string TdxPath;

        //同花顺安装目录
        public static readonly String ThsPath;

        //大智慧安装目录
        public static readonly String DzhPath;

        public static readonly String EsPath = "http://127.0.0.1:9200/";
    }
}